import axios from './http'
import qs from 'qs'
import base from './base'

const buy = {
  getSwiper (params) {
    return axios.post(`${base.pro}/api/communal/carousel`, qs.stringify(params))
  },
  getHot (params) {
    return axios.post(`${base.pro}/api/product/handbook`, qs.stringify(params))
  }
}
export default buy
